/*邮件管理*/
layui.define(['layer','form'], function(exports) {
    var $ = layui.jquery;
    var layer=layui.layer;
    var form = layui.form();

    $('#btn_save').click(function(){
        if($("#title").val()==""){layer.msg("请填写事务名称");return false;}
        if($("#type").val()==""){layer.msg("请选择事务类型");return false;}
        if($("#content").val()==""){layer.msg("请填写事务内容");return false;}
        if($("#start").val()==""){layer.msg("请选择开始时间");return false;}
        if($("#end").val()==""){layer.msg("请选择结束时间");return false;}
        $.post('/html/schedule/srv/edit_schedule.php',$('#form1').serialize(),function(e){
            layer.msg(e);      
            setTimeout("parent.layer.close(parent.layer.getFrameIndex(window.name))", 2000);
        })
    });  
    exports('schedule_edit', {});
    
});